package com.wn.excel.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @FileName: ExcelProperties
 * @Description: excel配置
 * @Author: MaWenHao
 * @Created: 2020/3/2 - 22:38
 * @Version: V1.0
 * @Company: 东方微银科技（北京）有限公司
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "woniu.excel")
public class ExcelProperties {

    /**
     * 每张表之间的间隔行数
     */
    private int rowSkip = 4;
    /**
     * 第一列宽度
     */
    private int firstCellWidth = 10;
    /**
     * 默认行高
     */
    private short defaultRowHigh = 25;

    /**
     * 标题背景
     */
    private short titleBackgroundColor = 30;
    /**
     * 标题行高
     */
    private short titleRowHigh = 40;
    /**
     * 标题字体
     */
    private String titleFont = "微软雅黑";
    /**
     * 标题字体大小
     */
    private short titleFontSize = 16;

    /**
     * 头部背景
     */
    private short topBackgroundColor = 48;
    /**
     * 头部行高
     */
    private short topRowHigh = 30;
    /**
     * 头部字体
     */
    private String topFont = "微软雅黑";
    /**
     * 头部字体大小
     */
    private short topFontSize = 12;

    /**
     * 表头背景
     */
    private short headerBackgroundColor = 48;
    /**
     * 表头行高
     */
    private short headerRowHigh = 30;
    /**
     * 表头字体
     */
    private String headerFont = "微软雅黑";
    /**
     * 表头字体大小
     */
    private short headerFontSize = 12;

    /**
     * 内容背景
     */
    private short contentBackgroundColor = 1;
    /**
     * 内容行高
     */
    private short contentRowHigh = 25;
    /**
     * 内容字体
     */
    private String contentFont = "微软雅黑";
    /**
     * 内容字体大小
     */
    private short contentFontSize = 10;

    /**
     * 底部背景
     */
    private short bottomBackgroundColor = 1;
    /**
     * 底部行高
     */
    private short bottomRowHigh = 25;
    /**
     * 底部字体
     */
    private String bottomFont = "微软雅黑";
    /**
     * 底部字体大小
     */
    private short bottomFontSize = 10;
}
